home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 65.zip / BS1 part 65 / DevPac v3.02b.adf / include / libraries / expansionbase.i < prev    next >
Text File  |  1991-11-20  |  2KB  |  70 lines

  1.     IFND    LIBRARIES_EXPANSIONBASE_I
  2. LIBRARIES_EXPANSIONBASE_I    SET    1
  3. **
  4. **    $Filename: libraries/expansionbase.i $
  5. **    $Release: 1.3 $
  6. **
  7. **    library structure for expansion library 
  8. **
  9. **    (C) Copyright 1987,1988 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. **
  12.  
  13.     IFND    EXEC_TYPES_I
  14.     INCLUDE "exec/types.i"
  15.     ENDC    ; EXEC_TYPES_I
  16.  
  17.     IFND    EXEC_LIBRARIES_I
  18.     INCLUDE "exec/libraries.i"
  19.     ENDC    ; EXEC_LIBRARIES_I
  20.  
  21.     IFND    EXEC_INTERRUPTS_I
  22.     INCLUDE "exec/interrupts.i"
  23.     ENDC    ; EXEC_INTERRUPTS_I
  24.  
  25.     IFND    EXEC_SEMAPHORES_I
  26.     INCLUDE "exec/semaphores.i"
  27.     ENDC    ; EXEC_SEMAPHORES_I
  28.  
  29.     IFND    LIBRARIES_CONFIGVARS_I
  30.     INCLUDE "libraries/configvars.i"
  31.     ENDC    ; LIBRARIES_CONFIGVARS_I
  32.  
  33.  
  34. TOTALSLOTS    EQU    256
  35.  
  36.  STRUCTURE    ExpansionInt,0
  37.     UWORD        ei_IntMask    ; mask for this list
  38.     UWORD        ei_ArrayMax    ; current max valid index
  39.     UWORD        ei_ArraySize    ; allocated size
  40.     LABEL        ei_Array    ; actual data is after this
  41.     LABEL        ExpansionInt_SIZEOF
  42.  
  43.  STRUCTURE    ExpansionBase,LIB_SIZE
  44.     UBYTE        eb_Flags
  45.     UBYTE        eb_pad
  46.     ULONG        eb_ExecBase
  47.     ULONG        eb_SegList
  48.     STRUCT        eb_CurrentBinding,CurrentBinding_SIZEOF
  49.     STRUCT        eb_BoardList,LH_SIZE
  50.     STRUCT        eb_MountList,LH_SIZE
  51.     STRUCT        eb_AllocTable,TOTALSLOTS
  52.     STRUCT        eb_BindSemaphore,SS_SIZE
  53.     STRUCT        eb_Int2List,IS_SIZE
  54.     STRUCT        eb_Int6List,IS_SIZE
  55.     STRUCT        eb_Int7List,IS_SIZE
  56.     LABEL        ExpansionBase_SIZEOF
  57.  
  58.  
  59. ; error codes
  60. EE_LASTBOARD    EQU    40    ; could not shut him up
  61. EE_NOEXPANSION    EQU    41    ; not enough expansion mem; board shut up
  62. EE_NOBOARD    EQU    42    ; no board at that address
  63. EE_NOMEMORY    EQU    42    ; not enough normal memory
  64.  
  65. ; flags
  66.     BITDEF    EB,CLOGGED,0    ; someone could not be shutup
  67.     BITDEF    EB,SHORTMEM,1    ; ran out of expansion mem
  68.  
  69.     ENDC    ; LIBRARIES_EXPANSIONBASE_I
  70.